/**
 * reducer
 */

// import { combineReducers } from 'redux'
import { type } from '../action';
const ebikeData = (state, action) => {
    switch (action.type) {
        case type.INFOTYPE:
            return {
                ...state,
                headName:action.headName
            };

        case type.msgType:
            return {
                ...state,
                msgNum:action.msgNum
            };
        case type.userType:
            return {
                ...state,
                info:action.info
            };
        default:
            return {...state};
    }
};

export default ebikeData;